package com.itheima.d2_homework.timu1;

public class Manager extends Employee {
    private Clerk clerk;



    public Manager(Clerk clerk) {
        this.clerk = clerk;
    }

    public Manager(String name, String workId, String dept, Clerk clerk) {
        super(name, workId, dept);
        this.clerk = clerk;
    }

    public Clerk getClerk() {
        return clerk;
    }

    public void setClerk(Clerk clerk) {
        this.clerk = clerk;
    }

    @Override
    public void showMsg() {
        System.out.println("销售部的：" + this.getName() + "," + "员工编号：" + this.getWorkId() + "他的经理是" + clerk.getName());
    }
}
